home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Toolkit
/
Winamp 5.12
/
winamp513_full_emusic-7plus.exe
/
$R0
/
Winamp Modern
/
scripts
/
crossfade.m
< prev
next >
Wrap
Text File
|
2005-09-15
|
1KB
|
38 lines
#include <lib/std.mi>
Global Group frameGroup;
Global Slider slidercb;
Global Text fadertext;
Global Button CFIncrease, CFDecrease;
Global ToggleButton Crossfade;
Global Layer DisplayOverlay;
System.onScriptLoaded() {
frameGroup = getScriptGroup();
slidercb = frameGroup.findObject("sCrossfade");
fadertext = frameGroup.findObject("CFDisplay");
CFIncrease = frameGroup.findObject("CrossfadeIncrease");
CFDecrease = frameGroup.findObject("CrossfadeDecrease");
Crossfade = frameGroup.findObject("Crossfade");
DisplayOverlay = frameGroup.findObject("crossfade.display.overlay");
slidercb.onSetPosition(slidercb.getPosition());
if (Crossfade.getActivated()) DisplayOverlay.hide();
}
slidercb.onSetPosition(int val) {
String s = IntegerToString(val);
fadertext.setText(s);
}
CFIncrease.onLeftClick() {
slidercb.SetPosition(slidercb.getPosition()+1);
}
CFDecrease.onLeftClick() {
slidercb.SetPosition(slidercb.getPosition()-1);
}
Crossfade.onToggle(boolean on) {
if (on) DisplayOverlay.hide(); else DisplayOverlay.show();
}